import request from '@/utils/request'

// 查询热词列表
export function listHotWord(query) {
  return request({
    url: '/operate/hot-word/list',
    method: 'post',
    data: query
  })
}

// 删除热词
export function delHotWord(data) {
  return request({
    url: '/operate/hot-word/del',
    method: 'post',
    data: data
  })
}

// 新增热词
export function saveHotWord(data) {
  return request({
    url: '/operate/hot-word/save',
    method: 'post',
    data: data
  })
}

// 修改热词
export function updateHotWord(data) {
  return request({
    url: '/operate/hot-word/edit',
    method: 'post',
    data: data
  })
}
